<template>
	<view class="content">
		<view class="header">

			<view class="header1">
				<view class="search">
					<image src="../../../static/home/search.png" mode=""></image>
					<input type="text" value="" placeholder="搜素" />
				</view>
			</view>



			<view class="switch">
				<view class="identitylist" v-for="(item,index) in identitylist" @click="dj(item.id)">
					<view class="identitylist1" :style="{background:a==item.id?'#FFFFFF':'' ,color:a==item.id?'#2C7CF6':''}">
						<text>{{item.title}}</text>
					</view>
				</view>
			</view>


			<view class="principallist" v-for="(item,index) in principallist">
				<text>{{item.name}}</text>
			</view>


		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
				a:0,
				identitylist: [{
						id: 0,
						title: '校长身份',

					},
					{
						id: 1,
						title: '校长身份',
					}
				],
				principallist: [{
						id: 0,
						name: 'A校园名称',
						authority: '(院长)'
					},
					{
						id: 0,
						name: 'A校园名称',
						authority: '(院长)'
					},
					{
						id: 0,
						name: 'A校园名称',
						authority: '(院长)'
					}
				]
			}
		},
		methods: {
			dj(id){
				console.log(id)
				this.a=id
			}
		}
	}
</script>

<style>
	.content {
		width: 750rpx;
		height: 100vh;
		background: #FAFAFA;
		border-radius: 0rpx 0rpx 0rpx 0rpx;

	}

	.header {
		width: 750rpx;
		height: 240rpx;
		background: linear-gradient(180deg, #1789FF 0%, #93C3F9 100%);
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		
	}
.header1{
	padding-top: 40rpx;
}
	.search {
		width: 690rpx;
		height: 88rpx;
		background: #FFFFFF;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		display: flex;
		align-items: center;
		margin: auto;


	}

	.search image {
		width: 34rpx;
		height: 34rpx;
		margin-left: 28rpx;
	}

	.search input {
		margin-left: 30rpx;
	}

	.sw {
		display: flex;
	}

	.switch {
		margin: 40rpx auto 0;
		display: flex;
		width: 690rpx;
		height: 96rpx;
		background: #F3F3F3;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		justify-content: center;
	}

	.identitylist {
		width: 50%;
		display: flex;
		justify-content: center;
		align-items: center;

	}

	.identitylist1 {
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 32rpx;
		color: #666666;
		width: 328rpx;
		height: 80rpx;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		display: flex;
		justify-content: center;
		align-items: center;

	}

	.principallist {

		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
		display: flex;
		align-items: center;
		width: 690rpx;
		height: 116rpx;
		background: #FFFFFF;
		margin: 40rpx auto 40rpx;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
	}
	.principallist text{
		margin-left: 40rpx;
	}
</style>